package com.Shuang.ATM;

import java.util.ArrayList;

public class Account {
    private String name;
    private char sex;
    private String password;
    private String CardID;
    private double list;
    private double money;

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getCardID() {
        return CardID;
    }

    public void setCardID(String cardID) {
        CardID = cardID;
    }

    public String getName() {
        return name + (sex == '男' ? "先生" : "女士");
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getList() {
        return list;
    }

    public void setList(double list) {
        this.list = list;
    }
}
